﻿@{
    ViewBag.Title = "Index";
}
<div id="tabs">
    <ul>
        <li><a href="#Home">Home</a></li>
        <li><a href="#Ads">Ads</a></li>
        <li><a href="#AdDetails">Ad Details</a></li>
        @if (Request.IsAuthenticated)
        {
            <li><a href="#MyPage">My Page</a></li>
        }
    </ul>
    <div class="tabcontent" id="Home">
        <div>
            @Html.Action("LatestAds", "Ads")
        </div>
    </div>
    <div class="tabcontent" id="Ads">
        <div id="adscontent">
            @Html.Action("Index", "Ads")
        </div>
    </div>
    @if (Request.IsAuthenticated)
    {
        <div class="tabcontent" id="MyPage">
            <div id="userinfo">
                @Html.Action("MyPage", "Account")
            </div>
        </div>
    }
</div>
